package com.swt.service.impl.W_impl;

import com.swt.dao.W_dao.StatsDao;
import com.swt.service.W_service.StatsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StatsServiceImpl implements StatsService {
    @Resource
    private StatsDao statsDao;


    /**
     * 用户注册人数统计
     * */
    @Override
    public List countUser() {
        return statsDao.countUser();
    }


    /**
     * 商家注册人数统计
     * */
    @Override
    public List countClub() {
        return statsDao.countClub();
    }

    //用户今日注册人数
    public List countUserDay(){
        return statsDao.countUserDay();
    }

    //用户昨日注册人数
    public List countUserYesterday(){
        return statsDao.countClubYesterday();
    }

    //用户本周注册人数
    public List countUserWeek(){
        return statsDao.countUserWeek();
    }

    //用户本月注册人数
    public List countUserMonth(){
        return statsDao.countUserMonth();
    }

    //用户注册总数
    public List countUserAll(){
        return statsDao.countUserAll();
    }


    //商家今日注册人数
    public List countClubDay(){
        return statsDao.countClubDay();
    }

    //商家昨日注册人数
    public List countClubYesterday(){
        return statsDao.countClubYesterday();
    }

    //商家本周注册人数
    public List countClubWeek(){
        return statsDao.countClubWeek();
    }

    //商家本月注册人数
    public List countClubMonth(){
        return statsDao.countClubMonth();
    }

    //用户注册总数
    public List countClubAll(){
        return statsDao.countClubAll();
    }
}
